@extends('desktop.template.bootstrap')
@section('scripts')
<link rel="stylesheet" href="{{asset('css/cs-index.css')}}" />
@endsection
@section('header')
@include('desktop.template.navbar-complete')
@endsection
@section('content')
<section class="books" style="padding-top: 40px;">
	<div class="container">
		<div class="col-xs-12">
			<div class="panel panel-default col-xs-3">
				<div class="panel-body">
					<div class="clearfix text-center m-t">
                        <div class="inline">
							<div class="thumb-sm">
								<img src="{{ Auth::user()->avatarUrl() }}" class="img-circle" width="120">
							</div>
							<div class="h4 m-t m-b-xs">
								{{ Auth::user()->nickname }}
							</div>
						</div>                      
					</div>
				</div>
				<div class="list-group">
					<a href="{{ url('/cs/bookshelves') }}" class="list-group-item @if(starts_with(Request::path(), 'cs/bookshelves') !== false ) active @endif">
						<i class="fa fa-book icon"></i>&nbsp;&nbsp;
						<span class="font-bold">我的书架</span>
					</a>
					<a href="{{ url('/cs/comments') }}" class="list-group-item @if(starts_with(Request::path(), 'cs/comments') !== false ) active @endif">
						<i class="fa fa-comment icon"></i>&nbsp;&nbsp;
						<span class="font-bold">我的书评</span>
					</a>
					<a href="{{ url('/cs/feedbacks') }}" class="list-group-item @if(starts_with(Request::path(), 'cs/feedbacks') !== false ) active @endif">
						<i class="fa fa-question-circle icon"></i>&nbsp;&nbsp;
						<span class="font-bold">我的反馈</span>
					</a>
				</div>
			</div>
			<div class="col-xs-9">
				@yield('cs-content')
			</div>
		</div>
	</div>
</section>
@endsection
